#ifndef COMPILER_ONLINE
#include "header.cpp" // 只为了不报错
#endif

void Test1()
{
    vector<int> v = { 0, 1, 9, 5, 6, 3, 7, 2 };
    int ret = Solution().Max(v);
    if(ret == 9)
    {
        cout << "Test 1 ... OK" << endl;
    }
    else
    {
        cout << "Test 1 ... Failed" << endl;
    }
}
void Test2()
{
    vector<int> v = { -1, -9, -5, -6, -3, -7, -2 };
    int ret = Solution().Max(v);
    if(ret == -1)
    {
        cout << "Test 2 ... OK" << endl;
    }
    else
    {
        cout << "Test 2 ... Failed" << endl;
    }
}
int main()
{
    Test1();
    Test2();
    
    return 0;
}